import request from '@/utils/request.js'
// 地址_添加/修改
export function setAddress(query) {
    return request({
        url: '/elder/api.Member/setAddres',
        method: 'post',
        params: query
    })
}

// 地址列表
export function getAddresLists(query) {
    return request({
        url: '/elder/api.Member/getAddresLists',
        method: 'post',
        params: query
    })
}

// 删除地址
export function delAddress(query) {
    return request({
        url: '/elder/api.Member/delAddres',
        method: 'post',
        params: query
    })
}

// 设为默认地址
export function setAddresDefault(query) {
    return request({
        url: '/elder/api.Member/setAddresDefault',
        method: 'post',
        params: query
    })
}

// 地址详情
export function getAddreInfo(query) {
    return request({
        url: '/elder/api.Member/getAddreInfo',
        method: 'post',
        params: query
    })
}